#ifndef SHAPE_H
#define SHAPE_H

#include<string>
using namespace std;
char* str2chars(string);

class shape
{
public:
	shape(string);
	virtual double area()=0;
	virtual double girth()=0;
	void show();
	~shape();

protected:
	string name;

};

class Circle :public shape
{
public:
	Circle(double r = 1, string na = "Circle");
	double area();
	double girth();
	~Circle();

private:
	double R;
	const double pi=3.1415926;
};

class Triangle :public shape
{
public:
	Triangle(double a = 1,double b=1,double c=1, string na = "Triangle");
	double area();
	double girth();
	~Triangle();

private:
	double A, B, C;
};

class Retangle :public shape
{
public:
	Retangle(double a = 1, double b = 1, string na = "Retangle");
	double area();
	double girth();
	~Retangle();

private:
	double A, B;
};

#endif // !SHAPE_H